﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EzDesk.Apps.ServiceImpl.Attendance.Repositories.Interface;
using EzDesk.Apps.Model.Attendance;

namespace EzDesk.Apps.ServiceImpl.Attendance.Repositories
{
    public partial class ModifiedEvaluationRepository : IModifiedEvaluationRepository
    {
        public DayAttendanceEvaluation GetByUserAndDate(Guid userId, DateTime date)
        {
            return GetAll()
                .Where(p => p.UserId == userId && p.Date == date)
                .SingleOrDefault();
        }
    }
}
